package com.zbl;

/**
 * desc:
 * date: 2022/12/31 15:15
 */
public class CreateDemo implements Cloneable {
    public int m;

    /**
     * @return
     * @throws CloneNotSupportedException
     */
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    /**
     * 重写equals
     *
     * @param obj
     * @return
     */
    public boolean equals(Object obj) {
        if (!(obj instanceof CreateDemo ob)) {
            return false;
        }

        return ob.m == this.m;
    }
}
